﻿@using MvcMall.AdminPortal.Controllers.GoodsCategory.ViewModels;
@model SaveGoodsCategoryModel
@using (Html.BeginForm("Save", "GoodsCategory"))
{
    <fieldset>
        @Html.HiddenFor(m => m.CatId)
        <div class="editor-label">
            @Html.LabelFor(m => m.ParentCatId)
        </div>
        <div class="editor-field">
            @Html.DropDownListFor(m => m.ParentCatId, ViewData["CatList"] as IEnumerable<SelectListItem>)
            @Html.ValidationMessageFor(m => m.ParentCatId)
        </div>
        <div class="editor-label">
            @Html.LabelFor(m => m.CatName)
        </div>
        <div class="editor-field">
            @Html.TextBoxFor(m => m.CatName)
            @Html.ValidationMessageFor(m => m.CatName)
        </div>
        <div class="editor-label">
            @Html.LabelFor(m => m.Keywords)
        </div>
        <div class="editor-field">
            @Html.TextAreaFor(m => m.Keywords, new { @style = " width:200px; height:100px;" })
            @Html.ValidationMessageFor(m => m.Keywords)
        </div>
        <div class="editor-label">
            @Html.LabelFor(m => m.CatDesc)
        </div>
        <div class="editor-field">
            @Html.TextAreaFor(m => m.CatDesc, new { @style = " width:200px; height:100px;" })
            @Html.ValidationMessageFor(m => m.CatDesc)
        </div>
        <div class="editor-label">
            @Html.LabelFor(m => m.SortOrder)
        </div>
        <div class="editor-field">
            @Html.TextBoxFor(m => m.SortOrder)
            @Html.ValidationMessageFor(m => m.SortOrder)
        </div>
        <div class="editor-label">
            @Html.LabelFor(m => m.SortOrder)
        </div>
        <div class="editor-field">
            @Html.TextBoxFor(m => m.SortOrder)
            @Html.ValidationMessageFor(m => m.SortOrder)
        </div>
        <p>
            <input type="submit" value="保存分类" /></p>
    </fieldset>
}